#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void main()
{
	int i = 0;
	int num = 100;
	int a, b, c;
	for (i = 100; i < 1000; i++)
	{
		a = num / 100;
		b = num / 10 % 10;
		c = num % 10;
		if (num == (a * a * a + b * b * b + c * c * c))
		{
			printf("%d  ", num);
		}
		else
		{
		}
		num++;
	}
}
